//
//  HomepageModel.m
//  Taste
//
//  Created by 徐昊 on 16/8/31.
//  Copyright © 2016年 徐昊. All rights reserved.
//

#import "HomepageModel.h"
#import "Res.h"

@implementation HomepageModel

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"res"]) {
        NSMutableArray *arr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            Res *model = [Res modelWithDic:dic];
            [arr addObject:model];
        }
        _res = arr;
    }
}

@end


